<template>
	<view>
		<!-- 实现log打印 -->
		<button @click="onlog()">console.log</button>
		<button @click="onDebug()">console.debug</button>
		<button @click="oninfo()">console.info</button>
		<button @click="onwarn()()">console.warn</button>
			<button @click="onerror()">console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'打印日志'
				
			}
		},
		methods: {
			onlog(){
				console.log("onlog()-->" + this.title)
				// 打印日志
				//clog
				//console.log("clog");
				//clogv
				//console.log('this: ',this.title);
				//,
			
			},
			onwarn(){
				if(name == 'cyc'){
					console.log("成功");
				}else
				{
					console.warn("???");
				}
			},
	
		onError(){
			console.error("error");
			try{
				
			}catch(e){
				console.error("catch"+e);
			}
		},
		
		onDebug(){
			console.debug("debug调试");
		},
		
		oninfo(){
			console.info("info 信息");
		}
		}
	}
</script>

<style>

</style>
